package com.yuexi.domain.payment.wxpay.definds;

/**
 * @author jie
 * @date 2023/4/6 -19:22
 */
public class QueryOrderErrorCode {
    // 未支付
    public static final String NOTPAY = "NOTPAY";
    // 用户支付中
    public static final String USERPAYING = "USERPAYING";
    // 已接收，等待扣款
    public static final String ACCEPT = "ACCEPT";


    /**
     * 是否是未知状态
     */
    public static boolean isUnknownState(String tradeState) {
        return tradeState.equals(NOTPAY) ||
                tradeState.equals(USERPAYING) ||
                tradeState.equals(ACCEPT);

    }
}
